package org.coolsugar.mybatis.service;

import java.util.List;

import org.coolsugar.mybatis.mapper.UserMapper;
import org.coolsugar.mybatis.pojo.User;
import org.coolsugar.mybatis.vo.RetCount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MybatisService {
	@Autowired
	private UserMapper userMapper;
	
	public List<User> queryAll() {
		return userMapper.selectAll();
	}
	
	public RetCount queryCount() {
		return userMapper.queryCount();
	}
}
